package com.gitee.xmhzzz.component.tcp.server.api;

import java.util.concurrent.TimeUnit;

/**
 * @InterfaceName CacheApi
 * @Description
 * @Author wzq
 * @Date 2024/3/12 14:27
 * @Version 1.0
 */
public interface CacheApi {

    void delete(String key);

    void setString(String key, String value, Integer time, TimeUnit unit);

    String getString(String key);

    void setHash(String key,String hKey, String value);

    Object getHash(String key,String hKey);

    String getHashString(String key,String hKey);

}
